package com.cbg.es.vo;

import com.cbg.es.dto.EsTableEditDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

/**
 * 展示表保存VO
 *
 * @author wangjuzheng
 * @date 2019-10-30
 **/
@Data
public class EsTableCategoryVO implements Serializable {

    /**
     * 分类id
     */
    @ApiModelProperty(value = "分类id")
    @NotNull(message = "分类id位空")
    private Long categoryId;

    /**
     * 表信息
     */
    @Valid
    @ApiModelProperty(value = "表信息")
    @Size(min = 1, message = "需要修改的表信息不存在")
    private List<EsTableEditDTO> list;
}
